package com.bruce.pattern.behavioral.mediator;

import lombok.extern.slf4j.Slf4j;

import java.time.LocalDateTime;

/**
 *  中介者类,协调user发送信息
 *
 * Created by bruce on 2018/11/11 15:15
 */
@Slf4j
public class StudyGroup {

    public static void showMessage(User user, String message) {

        log.info(LocalDateTime.now().toString() + user.getName() + " 发送消息:" + message);

    }


}
